package com.vshop.service.impl;

import com.vshop.entity.comentity.PackageMarketingStrategy;
import com.vshop.mapper.PackageMarketingStrategyMapper;
import com.vshop.service.PackageMarketingStrategyService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class PackageMarketingStrategyServiceImpl implements PackageMarketingStrategyService {
    @Resource
    PackageMarketingStrategyMapper packageMarketingStrategyMapper;

    @Override
    //@Cacheable(value = "price", key = "#p1+'_'+#p0")
    public List<PackageMarketingStrategy> queryPageByCodePriceByCode(String partnerCode, String packageCode) {
        return packageMarketingStrategyMapper.queryPageByCodePriceByCode(partnerCode, packageCode);
    }
}
